<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加课程</title>
    <link rel="stylesheet" href="/css/goods/goods-add.css">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/ztree/css/metroStyle.css">
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <script src="/ztree/js/jquery.ztree.core.min.js"></script>
    <script src="/ztree/js/jquery.ztree.excheck.min.js"></script>

</head>
<body>
    <div id="box">
        <div id="box-top">
            <div id="box-top-left">
                <span class ="span1">.</span>
                <span class="span2">添加课程</span>
            </div>
            <div id="box-top-right">
                <button type="button" class="layui-btn layui-btn-sm" onclick="goBack()">
                    <span class="layui-icon">&#xe65c; 返回</span>
                </button>
            </div>
        </div>
        <div id="box-body">
            <div id="box-body-body">
               <form class="layui-form" id="form" lay-filter="form">
                   <div class="layui-form-item">
                       <div class="layui-block">
                           <label class="layui-form-label">课程名称: </label>
                           <div class="layui-input-block">
                               <input type="text" class="layui-input-inline" name="courseName"/>
                           </div>
                       </div>
                       <div class="layui-block">
                           <label class="layui-form-label">课程分类</label>
                           <div class="layui-input-inline" id="sot">
                           </div>
                       </div>
                       <div class="layui-block" id="tx1">
                           <label class="layui-form-label">课程简介: </label>
                           <div class="layui-input-block">
                               <textarea class="layui-textarea" name="courseIntro" style=" resize: none;" placeholder="请输入详细内容"></textarea>
                           </div>
                       </div>
                       <div class="layui-block">
                           <label class="layui-form-label">课程价格: </label>
                           <div class="layui-input-block">
                               <input type="text" class="layui-input-inline" name="courseNprice"/>
                           </div>
                       </div>
                       <div class="layui-block">
                           <label class="layui-form-label">课程关键字: </label>
                           <div class="layui-input-block">
                               <input type="text" class="layui-input-inline" name="coursePrimary"/>
                           </div>
                       </div>
                       <div class="layui-block" id="tx2">
                           <label class="layui-form-label">课程详细: </label>
                           <div class="layui-input-block">
                               <textarea class="layui-textarea" name="courseInfo" style=" resize: none;" placeholder="请输入标签"></textarea>
                           </div>
                       </div>
                       <!-- 视频 -->
                       <div class="layui-block">
                           <label class="layui-form-label">课程视频: </label>
                           <div class="layui-input-block" enctype="multipart/form-data">
                               <button type="button" id="course_url" class="layui-btn">上传视频</button>
                               <input type="text" class="layui-hide" name="mainImage"/>
                           </div>
                       </div>
                       <div>
                           <div id="video"></div>
                       </div>


                       <div class="layui-block">
                           <label class="layui-form-label">课程图片: </label>
                           <div class="layui-input-block" enctype="multipart/form-data">
                               <button type="button" id="url" class="layui-btn">上传图片</button>
                               <input type="text" class="layui-hide" name="mainImage"/>
                           </div>
                       </div>
                       <div class="layui-block" id="images" style="display: none;">
                           <label class="layui-form-label">预览图片: </label>
                           <div class="layui-upload-list" id="image" style="margin-left: 110px;width: 300px">

                           </div>
                       </div>
                   </div>
                   <div id="box-body-dy">
                        <button type="button" class="layui-btn" id="submit">完成，添加课程</button>
                   </div>
                   <input type="hidden" name="createId" value="">
               </form>
            </div>
        </div>
    </div>
</body>
<script src="/js/course/course-add.js"></script>
<!-- 视频依赖 -->
<script type="text/javascript" src="/js/ckplayer/ckplayer.js"></script>
</html>